package com.qf;

import com.qf.pojo.Student;
import com.qf.pojo.User;
import org.apache.el.parser.AstIdentifier;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author 金园
 * @create 2022/6/7
 * @Description
 * @className SpringBootApplication
 * @packageName com.qf
 */
@SpringBootApplication
public class SpringBootApplicationHello {
    public static void main(String[] args) {
        ConfigurableApplicationContext ac = SpringApplication.run(SpringBootApplicationHello.class, args);
        User user = ac.getBean(User.class);
//        System.out.println(user);
        Student student = ac.getBean(Student.class);
        System.out.println(student);
    }
}
